<?php
declare(strict_types=1);
/**
 * Created by PhpStorm
 * User: Administrator
 * Date: 2023/4/11
 * Time: 14:45:19
 */

namespace App\Model\BbcModel;

class VipConfig extends \App\Model\BaseModel\BaseBbcModel
{
    public $table = 'ly_vip_config';

    /**
     * @param $cid
     * 判断是否开启高级会员模式
     */
    public function getVipType($cid)
    {
        $config = $this->info(['type'=>2,'cid'=>$cid]);
        if(empty($config)){
            return 0;
        }
        return $config['is_show'];
    }
}
